/**
* @author sunke
* @Date 2023-10-13 10:28:18
* @description 权限组权限关联
*/
package com.yuxi.model;

import com.yuxi.pubInter.BaseTimeDoMain;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.Length;

public class GroupRights extends BaseTimeDoMain {
    /**
     * 组ID
     */
    @Length(max=32,message="组ID长度最大值32")
    private String groupId;

    /**
     * 权限ID
     */
    @Length(max=32,message="权限ID长度最大值32")
    private String rightsId;

    /**
     * 排序
     */
    private Integer sortNum = 0;

    /**
     * 是否显示
     * 1:是:Y,0:否:N
     */
    private Integer showFlag = 1;

    /**
     * 是否删除
     * 1:删除:Y,0:正常:N
     */
    private Integer delFlag = 0;

    /**
     * 版本
     */
    private Integer version;

     /**
     *主键
     */
    public static final String ID = "group_rights.gr_id";

     /**
     *创建时间
     */
    public static final String CREATE_TIME = "group_rights.gr_create_time";

     /**
     *更新时间
     */
    public static final String UPDATE_TIME = "group_rights.gr_update_time";

     /**
     *组ID
     */
    public static final String GROUP_ID = "group_rights.gr_group_id";

     /**
     *权限ID
     */
    public static final String RIGHTS_ID = "group_rights.gr_rights_id";

     /**
     *排序
     */
    public static final String SORT_NUM = "group_rights.gr_sort_num";

     /**
     *是否显示
     */
    public static final String SHOW_FLAG = "group_rights.gr_show_flag";

     /**
     *是否删除
     */
    public static final String DEL_FLAG = "group_rights.gr_del_flag";

     /**
     *版本
     */
    public static final String VERSION = "group_rights.gr_version";

     /**
     *填充detail key
     */
    public static final String GROUP_RIGHTS_FULL_DETAIL_KEY = "GROUP_RIGHTS_FULL_DETAIL";

     /**
     *填充list key
     */
    public static final String GROUP_RIGHTS_FULL_LIST_KEY = "GROUP_RIGHTS_FULL_LIST";

    /**
     * 获取组ID
     *
     * @return gr_group_id - 组ID
     */
    public String getGroupId() {
        return groupId;
    }

    /**
     * 设置组ID
     *
     * @param groupId 组ID
     */
    public GroupRights setGroupId(String groupId) {
        this.groupId = groupId == null ? null : groupId.trim();
        return this;
    }

    /**
     * 获取权限ID
     *
     * @return gr_rights_id - 权限ID
     */
    public String getRightsId() {
        return rightsId;
    }

    /**
     * 设置权限ID
     *
     * @param rightsId 权限ID
     */
    public GroupRights setRightsId(String rightsId) {
        this.rightsId = rightsId == null ? null : rightsId.trim();
        return this;
    }

    /**
     * 获取排序
     *
     * @return gr_sort_num - 排序
     */
    public Integer getSortNum() {
        return sortNum;
    }

    /**
     * 设置排序
     *
     * @param sortNum 排序
     */
    public GroupRights setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
        return this;
    }

    /**
     * 获取是否显示
     *
     * @return gr_show_flag - 是否显示
     */
    public Integer getShowFlag() {
        return showFlag;
    }

    /**
     * 设置是否显示
     * 1:是:Y,0:否:N
     *
     * @param showFlag 是否显示
     */
    public GroupRights setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
        return this;
    }

    /**
     * 获取是否删除
     *
     * @return gr_del_flag - 是否删除
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * 设置是否删除
     * 1:删除:Y,0:正常:N
     *
     * @param delFlag 是否删除
     */
    public GroupRights setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    /**
     * 获取版本
     *
     * @return gr_version - 版本
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置版本
     *
     * @param version 版本
     */
    public GroupRights setVersion(Integer version) {
        this.version = version;
        return this;
    }
}